

//---------------------------------------------------------------------------------------------
// Murphy Scripting
// - Leave EventName as $ScreenRotateAction$ for main script method
//---------------------------------------------------------------------------------------------
void $ScreenMoveAction$ () 										//This is called by a button press
{

	
  	ScreenPositionData scr;
	scr.ObjectID = ScreenObjectIDs.Ellipse_Widget;				//This is the ID of the widget on the page designer screen you wish to animate
	scr.Recurrance = 200;										//Number of steps to calculate before arriving at final coordinates, a step size of 1 will jump to the new position
	scr.AnimationFactor = 5;									//Speed multiplier, affects how quickly it moves positions
	scr.AnimationType = AnimationTypes.FastInAccelerator;		//Sets motion acceleration type - linear or fast in/out (accelerates quickly on one end then deaccelerates on the other end)
	scr.EventId = EventIDs.ScreenRotateAction;					//This will fire the Screen Rotate function once this animation completes
	scr.XValue = 450.0f;										//These are the x,y coordinates the widget will move to
	scr.YValue = 123.0f;
	
	SendActionObject( ApplicationIDs.Screen , ActionIDs.Screen_AnimatePosition  , @scr); 	// Once all the parameters are loaded then fire the desired animation type - move position
//	SendAction( ApplicationIDs.Screen , ActionIDs.Screen_Process, ActionData.Empty );		//and then regerenerate the screen
	
}



//---------------------------------------------------------------------------------------------
// Murphy Scripting
// - Leave EventName as $ScreenRotateAction$ for main script method
//---------------------------------------------------------------------------------------------
void $ScreenRotateAction$ () 									//This is called by the previous animation
{
 	ScreenRotationData scr;
	scr.ObjectID = ScreenObjectIDs.Ellipse_Widget;
	scr.Recurrance = 120;
	scr.AnimationType = AnimationTypes.FastInAccelerator;
	scr.AnimationFactor = 3;
	scr.EventId = EventIDs.ScreenColorAction;
	scr.RotationValue = 960.0f;
	
	SendActionObject( ApplicationIDs.Screen , ActionIDs.Screen_AnimateRotation  , @scr);
//	SendAction( ApplicationIDs.Screen , ActionIDs.Screen_Process, ActionData.Empty );

}

//---------------------------------------------------------------------------------------------
// Murphy Scripting
// - Leave EventName as $ScreenColorAction$ for main script method
//---------------------------------------------------------------------------------------------
void $ScreenColorAction$ () 									//This is called by the previous animation
{
    ScreenColorData scr;
	scr.ObjectID = ScreenObjectIDs.Ellipse_Widget;
	scr.Recurrance = 20;
	scr.AnimationType = AnimationTypes.FastInAccelerator;
	scr.AnimationFactor = 3;
	scr.EventId = EventIDs.ScreenAlphaAction;
	scr.ColorType = ColorTypes.FillStart;
	scr.StartColor = 0xFFFFFFFF;
	scr.EndColor = 0xFF0000FF;

	SendActionObject( ApplicationIDs.Screen , ActionIDs.Screen_AnimateColor  , @scr);
//	SendAction( ApplicationIDs.Screen , ActionIDs.Screen_Process, ActionData.Empty );
}

//---------------------------------------------------------------------------------------------
// Murphy Scripting
// - Leave EventName as $ScreenAlphaAction$ for main script method
//---------------------------------------------------------------------------------------------
void $ScreenAlphaAction$ () 									//This is called by the previous animation
{
   	ScreenAlphaData scr;
	scr.ObjectID = ScreenObjectIDs.Ellipse_Widget;
	scr.Recurrance = 20;
	scr.AnimationType = AnimationTypes.FastInAccelerator;
	scr.AnimationFactor = 3;
	scr.EventId = EventIDs.ScreenAnimateScale;
	scr.AlphaValue = 10.0f;
	
	SendActionObject( ApplicationIDs.Screen , ActionIDs.Screen_AnimateAlpha  , @scr);
//	SendAction( ApplicationIDs.Screen , ActionIDs.Screen_Process, ActionData.Empty );
}



//---------------------------------------------------------------------------------------------
// Murphy Scripting
// - Leave EventName as $ScreenAnimateScale$ for main script method
//---------------------------------------------------------------------------------------------
void $ScreenAnimateScale$ () 									//This is called by the previous animation
{
    ScreenScaleData scr;
	scr.ObjectID = ScreenObjectIDs.Ellipse_Widget;
	scr.Recurrance = 20;
	scr.AnimationType = AnimationTypes.FastInAccelerator;
	scr.AnimationFactor = 3;
	scr.ScaleXValue = 2.0f;
	scr.ScaleYValue = 2.0f;
	
	SendActionObject(ApplicationIDs.Screen, ActionIDs.Screen_AnimateScale, @scr);
//	SendAction(ApplicationIDs.Screen, ActionIDs.Screen_Process, ActionData.Empty );

}